import { Layout } from "@rabbit.do/rabbit";
import { Index } from "@/views/index";
// 公共路由
export const routes = [{
  path: '/about',
  component: (resolve) => require(['@/views/about'], resolve),
  hidden: true,
  meta: {
    noLayout: true,
  },
},
{
  path: '/login',
  component: (resolve) => require(['@/views/login/index'], resolve),
  hidden: true,
  meta: {
    noLayout: true,
  },
},
// {
//   path: '/',
//   redirect: 'index',
//   component: (resolve) => require(['@/views/index'], resolve),
//   name: '首页',
//   hidden: true,
// },
{
  path: '/',
  redirect: '/index',
  component: Layout,
  children: [
    {
      path: "index",
      component: Index,
      name: '首页',
      meta: { title: '首页', icon: 'home', noCache: true, affix: true },
      parentId: "0",
    },
  ],
},
];
